package com.android.juguotang.model.group;

import com.android.juguotang.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/7/4.
 */

public abstract  class AdPictureDataCallback extends Callback<AdPictureData> {

    @Override
    public AdPictureData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();

        AdPictureData adPictureData = new Gson().fromJson(string,AdPictureData.class);
        return adPictureData;
    }
}
